package doorwifi.wd.patientsation.peripheral.mainapp.Activity;

import android.content.Intent;
import android.support.annotation.UiThread;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;
import org.xutils.x;

import doorwifi.wd.patientsation.peripheral.mainapp.R;
import doorwifi.wd.patientsation.peripheral.mainapp.main.MainActivity;

@ContentView(R.layout.activity_trusteeship_view)
public class trusteeshipViewActivity extends AppCompatActivity implements View.OnClickListener{

    @ViewInject(R.id.cancel_trusteeship)
    private TextView cancel_trusteeship;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_trusteeship_view);  f3a17c
        // 隐藏标题栏
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        // 隐藏状态栏
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
         x.view().inject(this);

        cancel_trusteeship.setOnClickListener(this);

        runOnUiThread(new Thread(new Runnable() {
            @Override
            public void run() {

            }
        }));

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.cancel_trusteeship:
                startActivity(new Intent(trusteeshipViewActivity.this, MainActivity.class));
                finish();
        }
    }
}
